package com.iqiyi.pps.epg.core.model.stream;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by lemuel on 2016/9/6.
 */
@Entity
@Table(name = "stream_span_log")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class StreamSpanLog {
    private long id;
    private long fatherId;
    private String StreamName;
    private String StreamType;
    private String ChannelName;
    private String restartTime;
    private String updateTime;
    private String firstSlice;
    private String miniChunkId;
    private String currentChunkId;
    private long span;
    private String seq;
    private Timestamp addTime;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "father_id")
    public long getFatherId() {
        return fatherId;
    }

    public void setFatherId(long fatherId) {
        this.fatherId = fatherId;
    }

    @Column(name = "stream_name")
    public String getStreamName() {
        return StreamName;
    }

    public void setStreamName(String streamName) {
        StreamName = streamName;
    }

    @Column(name = "stream_type")
    public String getStreamType() {
        return StreamType;
    }

    public void setStreamType(String streamType) {
        StreamType = streamType;
    }

    @Column(name = "channel_name")
    public String getChannelName() {
        return ChannelName;
    }

    public void setChannelName(String channelName) {
        ChannelName = channelName;
    }

    @Column(name = "restart_time")
    public String getRestartTime() {
        return restartTime;
    }

    public void setRestartTime(String restartTime) {
        this.restartTime = restartTime;
    }

    @Column(name = "update_time")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "first_slice")
    public String getFirstSlice() {
        return firstSlice;
    }

    public void setFirstSlice(String firstSlice) {
        this.firstSlice = firstSlice;
    }

    @Column(name = "mini_chunk_id")
    public String getMiniChunkId() {
        return miniChunkId;
    }

    public void setMiniChunkId(String miniChunkId) {
        this.miniChunkId = miniChunkId;
    }

    @Column(name = "current_chunk_id")
    public String getCurrentChunkId() {
        return currentChunkId;
    }

    public void setCurrentChunkId(String currentChunkId) {
        this.currentChunkId = currentChunkId;
    }

    @Column(name = "span")
    public long getSpan() {
        return span;
    }

    public void setSpan(long span) {
        this.span = span;
    }

    @Column(name = "seq")
    public String getSeq() {
        return seq;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }

    @Column(name = "add_time", updatable=false)
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }
}
